<?php

use yii\db\Migration;
use yii\db\Schema;

class m170727_091714_ADD_COLUMN_ORDER_MERGE_ID extends Migration
{
    public function up()
    {
		// 标识字段  是否是待合(并)房订单
        $this->addColumn('{{order}}', 'merge_id', Schema::TYPE_INTEGER. "(11)  NULL COMMENT '关联绑定的订单ID' ");
    }

    public function down()
    {
        echo "m170727_091714_ADD_COLUMN_ORDER_MERGE_ID cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
